package com.qfedu.mbtiapi.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * 测试题表(Question)实体类
 *
 * @author makejava
 * @since 2024-11-01 10:53:39
 */
@Data
@NoArgsConstructor
public class Question implements Serializable {
    private static final long serialVersionUID = -71819663632790747L;

    private Integer id;

    private Integer uid;
    /**
     * 类型：mbti
     */
    private String type;
    /**
     * 用户测试ID
     */
    private Integer utid;
    /**
     * 问题
     */
    private String question;
    /**
     * 选项a
     */
    private String optiona;
    /**
     * 选项b
     */
    private String optionb;
    /**
     * 选项a对应的答案代码
     */
    private String answera;
    /**
     * 选项b对应的答案代码
     */
    private String answerb;
    /**
     * 你选择的答案
     */
    private String answer;
    /**
     * 状态 1 未回答 2已回答
     */
    private Integer flag;

    private Date ctime;

    private Date utime;

    public Question(Integer uid, String type, Integer utid, String question, String optiona, String optionb, String answera, String answerb) {
        this.uid = uid;
        this.type = type;
        this.utid = utid;
        this.question = question;
        this.optiona = optiona;
        this.optionb = optionb;
        this.answera = answera;
        this.answerb = answerb;
        this.flag=1;
        this.ctime=new Date();
        this.utime=new Date();
    }
}